import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {Resolve} from '@angular/router';
import {RequestService} from './request.service';

@Injectable()
export class InitDataService implements Resolve<Observable<string>> {

    constructor(private requestService: RequestService) {
    }

    resolve() {
        return this.requestService.get('login/acctdata');
    }


}
